#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include "s_and_r.c"

#define SIZE 100

extern int rand1(void);

extern void srand1(unsigned int seed);

static sort_i(int [], int size);

int main(void) {
    int numbers[SIZE];
    srand1(time(0));
    for (int i = 0; i < SIZE; ++i) {
        numbers[i] = rand1() % 10 + 1;
    }
    sort_i(numbers, SIZE);
    for (int j = 0; j < SIZE; ++j) {
        printf("%d ", numbers[j]);
        if (j % 10 == 9) {

            puts("");
        }
    }
    return 0;
}

sort_i(int arr[], int size) {
    for (int i = 0; i < size; ++i) {
        for (int j = i + 1; j < size; ++j) {
            if (arr[i] < arr[j]) {
                int temp = arr[i];
                arr[i] = arr[j];
                arr[j] = temp;
            }
        }
    }
}